package ar.com.angrymachine.hunter.ui;

import java.awt.Graphics;
import java.awt.Rectangle;

import ar.com.angrymachine.gameui.Utils;
import ar.com.angrymachine.gameui.Widget;
import ar.com.angrymachine.hunter.ActivitySet;
import ar.com.angrymachine.hunter.Game;
import ar.com.angrymachine.hunter.HunterResourceManager;

public class MainActivityWidget extends ActivityWidget
{
	public void paint(Graphics g)
	{
		Utils.pushClipStack(g);
		g.setClip(0, 0, getWidth(), getHeight());
		g.drawImage(HunterResourceManager.getImage("cave-background.png"), 0, 0, null);
		Utils.popClipStack(g);
		super.paint(g);
	}

	public MainActivityWidget(Widget parent, Rectangle area)
	{
		super(parent, area);
	}

	protected ActivitySet getActivitySet()
	{
		return Game.current.currentLevel;
	}

}
